﻿<!doctype html>
<html>

<head resource>
    <title></title>
    <include file="inc/meta.inc" />
</head>

<body>
    <div id="vapp" v-cloak>
        <page_header @load="(o,c,p)=>{org=o;config=c;platinfo=p;}" @login="acc=>account = acc">loading ...</page_header>

        <template v-if="!loading">
            <el-carousel v-if="showpic.length>0" class="carousel">
                <el-carousel-item v-for="pic in showpic" :style="'background:'+pic.Shp_BgColor">
                    <a :href="pic.Shp_Url!='' ? pic.Shp_Url : '#'" :target="pic.Shp_Target">
                        <img :src="pic.Shp_File" v-if="pic.Shp_File!=''" />
                        <img src="Images/swipe/3.jpg" v-else />
                    </a>
                </el-carousel-item>
            </el-carousel>
            <el-carousel :interval="5000" class="carousel" v-else>
                <el-carousel-item style="background:#e2f1f6;">
                    <img src="Images/swipe/2.jpg" />
                </el-carousel-item>
                <el-carousel-item style="background:#f3d3c4;">
                    <img src="Images/swipe/1.jpg" />
                </el-carousel-item>
                <el-carousel-item style="background:rgb(248, 248, 248);">
                    <img src="Images/swipe/3.jpg" />
                </el-carousel-item>
            </el-carousel>
        </template>
        <context class="notice" v-if="notice.length>0">
            <a class="tit" href="web/Notice">
                <icon>&#xe697</icon> 通知公告 <span class="more">&nbsp;</span>
            </a>
            <div class="noticebox">
                <div class="noItem" v-for="(data,i) in notice">
                    <div>
                        <b :class="'order_'+i">{{i+1}}.</b>
                        <a :href="'web/notice/detail.'+data.No_Id" :title="data.No_Ttl">
                            {{data.No_Ttl}}<br /> <span v-html="data.No_Context">
                            </span></a>
                    </div>
                    <div class="nodate">
                        <icon>&#xe81a</icon>{{data.No_StartTime|date("yyyy-MM-dd HH:mm")}}
                    </div>
                </div>
            </div>
        </context>
        <context class="rec">
            <subject_rec :subject="null" :org="org" :count="8" :mincount="4" order="rec"></subject_rec>
        </context>
        <context class="news" v-if="articles.length>0">
            <a class="tit" href="web/news">
                <icon>&#xe668</icon> 焦点要闻 <span class="more">&nbsp;</span>
            </a>
            <div class="artbox">
                <div class="art_img" remark="图片新闻">
                    <template v-for="(data,i) in articles">
                        <div v-if="i<3">
                            <a :href="'/web/news/article.'+data.Art_ID" :title="data.Art_Title">
                                <img :src="data.Art_Logo" v-if="data.Art_Logo!=''" />
                                <img src="Images/def_news.jpg" v-else />
                            </a>
                            <a v-html="data.Art_Title" :title="data.Art_Title"
                                :href="'/web/news/article.'+data.Art_ID"></a>
                        </div>
                    </template>
                </div>
                <div class="art_list" remark="新闻列表">
                    <template v-for="(data,i) in articles">
                        <a v-if="i>=4" v-html="data.Art_Title" :title="data.Art_Title"
                            :href="'web/news/article.'+data.Art_ID"></a>
                    </template>
                </div>
            </div>

        </context>

        <context class="subjectbox" v-infinite-scroll="loadsbj">
            <template v-for="sbj in subject">
                <!-- mincount 最少显示个数，当专业下的课程低于这个数时，这个区域不显示，为了保持页面不要太空-->
                <subject_show :subject="sbj" :org="org" :count="6" :mincount="1" order="rec"></subject_show>
            </template>
        </context>

        <context remark="友情链接">
            <linksorts :sort="null" :org="org" :count="1">
                <template #title>
                    <div class="links-tit">
                        <a href="/web/link" target="_blank">友情链接</a>
                    </div>
                </template>
            </linksorts>
        </context>
        <page_footer :organ="org" :account="account">loading ...</page_footer>
        <popup-notice forpage="web_home" remark="通知公告的弹出"></popup-notice>
    </div>

</body>

</html>